<template>
	<view>
		<u-modal :show="show" :title="title" :closeOnClickOverlay="true" :showCancelButton="true" @close="close"
			@cancel="close" @confirm="confirm">
			<view class="slot-content">
				<rich-text :nodes="content"></rich-text>
			</view>
		</u-modal>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: "温馨提示"
			},
			content: String,
			show: {
				type: Boolean,
				default: false
			},
		},
		data() {
			return {}
		},
		methods: {
			confirm() {
				this.$emit('confirm')
			},
			close() {
				this.$emit('close', false)
			}
		}

	}
</script>

<style>
</style>